import { App } from 'vue'
import './style.scss'
import Icon from './Icon'
import AreaSelect from './AreaSelect'
import Form from './Form'
import Button from './Button'
import TableSelect from './TableSelect'
import STable from '@surely-vue/table'
import DialogTable, { DialogTableProps } from './DialogTable'

const components = [
  Icon,
  AreaSelect,
  Form,
  Button,
  TableSelect,
  STable,
  DialogTable
]

export default {
  install(app: App) {
    components.forEach((component) => {
      app.use(component)
    })
  }
}

export { Icon, AreaSelect, Form, Button, TableSelect, STable, DialogTable }
export type { DialogTableProps }
